<div class="center">
	<div class="home">
        <div class="home_left">
            <?php echo $this->partial('tuan/menu.phtml',array('uCount' => $this->uCount,'menuId'=>$this->menuId,'user'=>$this->user)); ?>
        </div>
    	<div class="home_right">
            <div class="storehousetop">
            
                <div class="storehouse">
                    <div class="cloud">
                        <span>我的云仓库</span>
                    </div>
                    <div class="storehouseinfo">
                        <h1>我的云仓库</h1>
                        <div class="storehousenum">
                        	<h3>交易提醒：</h3>
                            <ul>
                                <li><a href="/member/mystore">我的库存<span>(<?php echo $this->uCount["store"];?>)</span></a></li>
                                <li><a href="/member/forecastlist">预报列表<span>(<?php echo $this->uCount["ingstore"];?>)</span></a></li>
                                <li><a href="/member/waybill">我的国际运单</a></li>
                            </ul>
                            <p><a href="http://help.uuch.com/?p=62" target="_blank"><i></i>如何使用云仓库？</a></p>
                        </div>
                    </div>
                </div>
            
                <div class="storehousenav">
                    <ul>
                        <li class="storehouseon"><a href="/member/mystore"><i class="storehouse1"></i>我的库存</a></li>
                        <li><a href="/member/storehistory"><i class="storehouse2"></i>仓库历史记录</a></li>
                        <li><a href="/member/storehome"><i class="storehouse3"></i>我的云仓库地址</a></li>
                    </ul>
                    <a class="yubaoruku" href="/member/instore"><span>预报入库</span></a>
                </div>
            </div>
            <form method="POST" name="listForm" action="/member/inwaybill/">
            <div class="mywarehouse">
                <div class="warehousetop">
                    <h2>我的云库存：</h2>
                    <p>共 <?php echo $this->uCount["store"];?> 件，已选<i><em>0</em></i>件</p>                    
                </div>
            </div>
            <div class="warehouselist">
            	<table>
                	<tr>
                    	<th class="t1"><input name="" type="checkbox" value="" class="all" /></th>
                    	<th class="t2">编号</th>
                    	<th class="t3">名称</th>
                    	<th class="t4">物品净重</th>
                    	<th class="t5"><div class="wen">
                                <span>体积重量</span>
                            	<a class="wtb" href="javascript:void(0)">疑问</a>
                                <div class="tc" style="display:none;margin-left:-100px;">
                                    <div class="jtou" style="margin-left:160px"></div>
                                    <p>根据四大国际快递公司规定，物品运送时，取物品实际重量与体积重量较大者进行结算。在集中托运时，一批货物由几件不同的货物组成，有轻抛货也有重货。其计费重量则采用整批货物的总毛重或总体积计量，按两者之中较高的一个计算。</p>
                               </div>
                            </div></th>
                    	<th class="t6">入库时间</th>
                    </tr>
                </table>
                <div class="Noinventory" <?php if(count($this->storelist)>0) echo "style='display:none;'";  ?>>
                	<div class="no_pic">
                    	库存为空
                    </div>
                    <div class="NOsm">
                        <h2>您的仓库没有任何物品！</h2>
                        <p>猜您接下来会：<a href="/member/instore/">预报入库</a></p>
                    </div>
                </div>
            	<table id="store_table">

                    <?php
                    //if($this->storelist)
                    foreach ($this->storelist as  $store){ ?>
                    <tr>
                    	<td class="t1"><input class="chk_id" name="id" <?php if($store->wayId || $store->state!=1 || $store->IsEmbargo) echo 'disabled="true"';?>  weight="<?php echo $store->weight; ?>" type="checkbox" value="<?php echo $store->id;?>"  /></td>
                        <td class="t2"><?php echo substr($store->barcode,-10,10); 
                                            if($store->state==2) 
                                                echo '<br><div class="wh_comefrom"><span>已发货</span></div>';     
                                            elseif($store->wayId) 
                                                echo '<br><div class="wh_comefrom"><span>正在受理...</span></div>'; 
                                       ?></td>
                        <td class="t3">
                        	<div class="whpic">
                            	<a href="<?= $this->cdn ?><?= is_file('big'.$store->imageFile)?('/big'.$store->imageFile):($store->imageFile) ?>" target="_blank"><img src="<?= $this->cdn ?><?php echo $store->imageFile; ?>" alt="<?php echo $store->productName; ?>" /></a>
                            </div>
                            <div class="whinfo">
                            	<h2><a href="<?php echo $store->imageFile; ?>" target="_blank"><?= $store->productName;?></a></h2>
                                <? if($store->CnShipFee&&$store->CnShipFee>0){ ?> <span style="color:red">国内运费：<?= $store->CnShipFee ?>元</span><? } ?>
                                <div class="wh_comefrom">
                                    <label>包裹来源：</label><?= $store->Logistics ?>
                                </div>
                                <?if($store->IsEmbargo + $store->BignessType + $store->ItemType > 0){?>
                                <div class="tez">
                                	<label>包裹特征：</label>
                                    <ul>
                                        <? if($store->IsEmbargo){?>
                                        <li><a class="tz6" href="#">禁运</a>
                                            <div class="tc" style="display:none">
                                            	<div class="jtou"></div>
                                                <p>此物品各大快递均不接收运送，详情请咨询悠奇客服</p>
                                                
                                            </div>
                                        </li>
                                        <? } ?>
                                        <? if($store->BignessType && $store->BignessType >0){?>
                                    	<li>
                                        	<a class="tz1" href="#">抛货</a> 
                                            <div class="tc" style="display:none">
                                            	<div class="jtou"></div>
                                                <p>此商品体积较大，当使用DHL、UPS、Fedex时需按体积重量结算运费。   <a href="http://help.uuch.com/?p=268" target="_blank">什么是体积重量？</a></p>
                                                <p>EMS和邮政小包按实际重量结算</p>
                                            </div>
                                        </li>
                                        <? } ?>
                                        <? foreach(Application_Model_StoreItem::getNames() as $key=>$value){ 
                                            if($key != 0 && ($store->ItemType & $key) == $key){
                                            ?>
                                            <li><a class="<?= $value[1]?>" href="#"><?= $value[0]?></a>
                                                <div class="tc" style="display:none">
                                                    <div class="jtou"></div>
                                                    <p><?= $value[2]?></p>
                                                </div>
                                            </li>
                                        <?  }
                                          }
                                        ?>
                                    	
                                    </ul>
                                </div>
                                <? } ?>
                            </div>
                        </td>
                        <td class="t4">
                        	<?php echo $store->weight; ?>g
                            <p><?if($store->isPack) echo '带包装'; else echo '';?></p>
                        </td>
                        <td class="t5"><?= $store->VolumeWeight?$store->VolumeWeight.'g':'(无)'; ?></td>
                        <td class="t6"><?php  echo $store->dateInStore; ?></td>
                    </tr>
                    <?php }?>
                </table>
            </div>
            <div class="operating">
            	<label><input name="" class="all" type="checkbox" value="" />全选</label>
                <?
                if($this->stores['size']>1){
                 echo $this->partial('paging.phtml',array("pages"=>$this->stores));
                }
                ?>
            </div>
            
            </form>
        </div>
    </div>
</div>